package com.yh.correct.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.yh.correct.model.Grade;

/*
 * 监管等级
 */
@Repository
public interface IGradeMapper {
	/**
	 * 增加监管等级
	 */
	int addGrade(Grade grade) throws Exception;
	/*
	 * 删除监管等级
	 */
	int delGrade(int id) throws Exception;

	/**
	 * 批量删除监管等级
	 * @param list
	 * @return
	 * @throws Exception
     */
	int deleteBatch(List<Integer> list) throws Exception;
	/**
	 * 修改监管等级
	 */
	int editGrade(Grade grade) throws Exception;
	/**
	 *根据Id查询监管等级 
	 */
	Map<String,Object> getIdGrade(int id) throws Exception;
	
	/**
	 * 模糊查询全部人员监管等级
	 */
	List<Object> getLikeGrades(Map<String,Object> grade) throws Exception;
	
	/**
	 * 模糊查询期满登记匹配的信息总条数
	 * 
	 * @param grade
	 * @return
	 */
	Integer getLikeGradesCount(Map<String,Object> grade) throws Exception;
	/**
	 *@author Administrator
	 *@注释 : 查询所有监管等级
	 *	
	 */
	List<Map<String,Object>> getAllGrade() throws Exception;


	
}
